@fz10: 10px;
@fz12: 12px;
@fz14: 14px;
@fz16: 16px;
@color-h1: #111111;
@color-h2: #656565;
@color-h3: #919191;
@color-h4: #DF0011;
@color-bg: #f3f4f5;
@theme-color: #DF0011;
page {
  font-size: @fz14;
  box-sizing: border-box;
  background-color: @color-bg;
}

view,
button,
input {
  box-sizing: border-box;
}

.main {
  padding: 44px 12px 64px 12px;
}

.setting {
  border-radius: 4px;
  margin-bottom: 10px;
  background: #ffffff;
  &__item {
    padding: 15px 0;
    position: relative;
    &:after {
      position: absolute;
      left: 0;
      bottom: 0;
      content: '';
      width: 100%;
      height: 1px;
      background: @color-bg;
      transform: scaleY(.5);
      transform-origin: left bottom;
    }
    &:last-child {
      &:after {
        content: none;
      }
    }
  }
}

.item {
  display: flex;
  align-items: center;
  border-left: 4px solid @theme-color;
  padding: 0 10px;
  &__l {
    flex-shrink: 0;
    color: @color-h2;
  }
  &__c {
    flex: 1;
    padding: 0 10px;
  }
  &__r {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
}

.rtext {
  padding: 0 5px;
}

.input {
  color: @color-h3;
}

.subitem {
  padding: 0 14px;
  .textarea-wrap{
    position: relative;
    .textarea {
      position: relative;
      z-index: 1;
      box-sizing: border-box;
      width: 100%;
      height: 140px;
      padding: 10px;
      line-height: 20px;
      margin-top: 10px;
      background: rgba(238, 238, 238, 1);
    }
    .text-count{
      position: absolute;;
      right: 10px;
      bottom: 10px;
      z-index: 2;
      font-size: @fz14;
      color: @color-h2;
    }
  }
  .image-wrap{
    margin: 10px -5px 0 -5px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    .image-count{
      position: absolute;
      right: 5px;
      top: -30px;
      line-height: 20px;
      font-size: @fz14;
      color: @color-h2;
    }
    .image-item{
      width: 33.3333%;
      padding: 5px;
      position: relative;
      .mask{
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        .image{
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          background-color:rgba(238,238,238,1);
        }
        .add{
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          background-color:rgba(238,238,238,1);
          transition: all 300ms;
          &:active{
            opacity: .8;
          }
          &:before, &:after{
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translateX(-50%) translateY(-50%);
            background:rgba(204,204,204,1);
          }
          &:before{
            width: 32px;
            height: 1px;
          }
          &:after{
            width: 1px;
            height: 32px;
          }
        }
      }
    }
  }
}

// button
.btn-wrap {
  position: fixed;
  left: 0;
  bottom: 12px;
  width: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  .btn{
    padding: 0 40px;
    color: #fff;
    font-size: @fz14;
    background: linear-gradient(90deg, @theme-color, #e54b4d);
    box-shadow: 0 0 20px #ccc;
    transition: all 300ms;
    &:before, &:after{
      content: none;
    }
    &:active{
      opacity: .8;
    }
  }
}
